<h1>Editing person</h1>

<%= error_messages_for :person %>

<% form_for(@person) do |f| %>
  <p>
    <b>First name</b><br />
    <%= f.text_field :first_name %>
  </p>

  <p>
    <b>Last name</b><br />
    <%= f.text_field :last_name %>
  </p>

  <p>
    <b>Date of birth</b><br />
    <%= f.datetime_select :date_of_birth %>
  </p>

  <p>
    <b>Country</b><br />
    <%= f.text_field :country_id %>
  </p>

  <p>
    <b>Favorite planet</b><br />
    <%= f.text_field :favorite_planet_id %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @person %> |
<%= link_to 'Back', people_path %>
